/* MarketingCalendar.module.css */
.container {
    background: #fff;
    border-radius: 8px;
    /* padding: 0 30px; */
    width: 100%;    
}

.headerRow {
    padding: 16px 0;
    display: flex;
    align-items: center;
    gap: 30px;
}

.sectionTitle {
    font-size: 26px;
    color: #333;
    margin: 0;
    font-weight: 500;
    position: relative;
    padding-left: 10px;
    white-space: nowrap;
}

.sectionTitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background: #ff4d4f;
    border-radius: 2px;
}

.festivalList {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    flex: 1;
}

.festivalItem:hover .festivalName,
.festivalItem:hover .festivalDate,
.festivalItem:hover .daysNumber,
.festivalItem:hover .daysText {
    color: #ff7d04;
    transition: color 0.3s ease;
}

.festivalList::-webkit-scrollbar {
    height: 4px;
}

.festivalList::-webkit-scrollbar-thumb {
    background: #e8e8e8;
    border-radius: 2px;
}

.festivalItem {
    min-width: 180px;
    padding: 12px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: #fff;
}

.festivalItem:hover,
.festivalItem.active {
    background: #fff2e5;
    border: 1px solid #ff4d4f;
}

.festivalItem.active .festivalName,
.festivalItem.active .festivalDate,
.festivalItem.active .daysNumber,
.festivalItem.active .daysText {
    color: #ff7d04;
}



.festivalLeft {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.festivalName {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.festivalDate {
    font-size: 12px;
    color: #999;
}

.daysAfter {
    display: flex;
    align-items: center;
}

.daysNumber {
    font-size: 36px;
    color: #999;
    font-weight: bold;
    line-height: 1;
}

.daysText {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    writing-mode: vertical-lr;
    text-orientation: upright;
    letter-spacing: 0.2em;
}

.nameRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.nameRow span {
    font-size: 14px;
    color: #333;
}

.dateRow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.countBadge {
    background: rgba(255, 77, 79, 0.1);
    color: #ff4d4f;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 12px;
}

/* 模板展示区 */
.templateGallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 35px;
    /* padding: 20px 60px; */
}

.templateCard {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.templateContent {
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.templateImageContainer {
    width: 100%;
    height: 460px;
    overflow: hidden;
    border-radius: 8px;
}

.templateImage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.templateCard:hover .templateImage {
    transform: scale(1.1);
}

.templateInfo {
    padding: 12px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
    display: flex;
    justify-content: space-between;
}

.templateInfo h4 {
    margin: 0;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.templateInfo span {
    font-size: 12px;
    color: #999;
}